<template>
  <div class="not-found">
    <div class="error-container">
      <div class="error-code">404</div>
      <div class="error-message">页面不存在</div>
      <p class="error-description">
        您访问的页面不存在或已被移除
      </p>
      <router-link to="/" class="home-button">
        <el-button type="primary" round>返回首页</el-button>
      </router-link>
    </div>
  </div>
</template>

<script setup>
// 不需要额外逻辑
</script>

<style scoped>
.not-found {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.error-container {
  text-align: center;
  padding: 2rem;
  border-radius: 12px;
  background: white;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  max-width: 500px;
  width: 90%;
  animation: fadeIn 0.6s ease-out;
}

.error-code {
  font-size: 8rem;
  font-weight: bold;
  color: #409eff;
  line-height: 1;
  margin-bottom: 1rem;
}

.error-message {
  font-size: 1.8rem;
  color: #303133;
  margin-bottom: 1rem;
}

.error-description {
  color: #606266;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.home-button {
  text-decoration: none;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
</style>